using System;
using System.Threading.Tasks;
using Acme.BookStore.StockManagement.Dtos.ChaKanGuanLian;
using Volo.Abp.Application.Dtos;
using Volo.Abp.Application.Services;

namespace Acme.BookStore.StockManagement.Services
{
    /// <summary>
    /// 查看关联应用服务接口
    /// </summary>
    public interface IChaKanGuanLianAppService : IApplicationService
    {
        /// <summary>
        /// 获取查看关联分页列表
        /// </summary>
        /// <param name="input">查询条件</param>
        /// <returns>分页结果</returns>
        Task<PagedResultDto<ChaKanGuanLianDto>> GetListAsync(ChaKanGuanLianGetListInputDto input);

        /// <summary>
        /// 获取查看关联详情
        /// </summary>
        /// <param name="id">主键ID</param>
        /// <returns>查看关联</returns>
        Task<ChaKanGuanLianDto> GetAsync(int id);

        /// <summary>
        /// 创建查看关联
        /// </summary>
        /// <param name="input">查看关联</param>
        /// <returns>创建后的查看关联</returns>
        Task<ChaKanGuanLianDto> CreateAsync(ChaKanGuanLianDto input);

        /// <summary>
        /// 更新查看关联
        /// </summary>
        /// <param name="id">主键ID</param>
        /// <param name="input">查看关联</param>
        /// <returns>更新后的查看关联</returns>
        Task<ChaKanGuanLianDto> UpdateAsync(int id, ChaKanGuanLianDto input);

        /// <summary>
        /// 删除查看关联
        /// </summary>
        /// <param name="id">主键ID</param>
        /// <returns></returns>
        Task DeleteAsync(int id);
    }
} 